package appapi.service.mango;

import appapi.Request.record.FaceRecordReq;
import appapi.Vo.brider.FaceRecordVo;
import appapi.dto.bridge.FaceRecordDto;
import appapi.entity.Zhongjiao.FaceRecordPageReq;
import appapi.entity.bridge.FaceRecordEntity;
import org.aspectj.weaver.ast.Var;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author dhq
 * @date 2023/9/11  12:26
 * @version 1.0
 */
public interface FaceRecordService {



    int deleteByPrimaryKey(Long id);

    int insert(FaceRecordEntity record);

    int insertSelective(FaceRecordEntity record);

    FaceRecordEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FaceRecordEntity record);

    int updateByPrimaryKey(FaceRecordEntity record);

    /**
     * 分页获取人脸识别记录
     * @param faceRecordPageReq
     * @return
     */
    List<FaceRecordVo> getFaceRecordListByPage(FaceRecordPageReq faceRecordPageReq) ;
    List<FaceRecordVo> getFaceRecordList(FaceRecordReq req) ;

    FaceRecordVo getDetail(Long id);

    /**
     * 数据保存到缓存
     */
    void redis(MultipartFile file) throws IOException;


}
